package rentals;

import java.util.ArrayList;

public class SeniorMember extends Member {

	public SeniorMember(String name) {
		setName(name);
		rentals = new ArrayList();
	}
	
	public void rentDvd(Dvd dvd) {
		if (dvdCount < 4) {
			rentals.add(dvd);
			System.out.println(toString() + " has rented: " + dvd.toString());
			dvdCount += 1;
		}
		else {
			System.out.println(toString() + " has already rented: ");
			printRentals();
			System.out.println("Exceeding there limit of " + 4 + ".");
		}
	}
}
